<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <f:view contentType="text/html">
        
        <h:head>
            <title>Facelet Title</title>
        </h:head>
        <h:body>
            <p:growl id="messages" showDetail="true"/>
            <p:galleria id="galleria" value="#{fileUpload.nomeImagens}" var="image" 
                          
                          autoPlay="false" effectSpeed="1000" panelWidth="600" panelHeight="400" showCaption="true">
               
                <p:graphicImage   width="490"  height="290"  value="#{image}"  title="#{image}"/>
               
            </p:galleria>
            <h:form>
                <p:fileUpload  fileUploadListener="#{fileUpload.handleFileUpload}" 
                               multiple="true" update=":messages :galleria" sizeLimit="500000000"  allowTypes="/(\.|\/)(gif|jpe?g|png)$/" />
            </h:form>
        </h:body>
    </f:view>
</html>

